#include "StdAfx.h"
#include "cSpriteMgr.h"

cSpriteMgr::cSpriteMgr(void)
{
}
//-------------------------------------------------------------------------------------------------------------------------
cSpriteMgr::~cSpriteMgr(void)
{
}
//-------------------------------------------------------------------------------------------------------------------------
cSpriteMgr& cSpriteMgr::getInstance()
{
	static cSpriteMgr g_SpriteMgr;

	return g_SpriteMgr;
}
//-------------------------------------------------------------------------------------------------------------------------
void cSpriteMgr::loadAll()
{
	mExplosion.Init("../data/effect/fire.bmp", 6, 5);
}
//-------------------------------------------------------------------------------------------------------------------------
void cSpriteMgr::release()
{
	mExplosion.release();
}
//-------------------------------------------------------------------------------------------------------------------------
AnimSequence* cSpriteMgr::getSprite( const std::string & nick_name )
{
	if ( nick_name == "explosion" ){ return &mExplosion; }
  	
	return NULL;
}
//-------------------------------------------------------------------------------------------------------------------------
